//
//  WlisLoginButton.swift
//  Swift_missScarlett
//
//  Created by xmg on 16/9/17.
//  Copyright © 2016年 wlis. All rights reserved.
//

import UIKit

class WlisLoginButton: UIButton {
    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.imageView?.centerX = self.width * 0.5
        self.imageView?.y = 0
        
        self.titleLabel?.font = UIFont .systemFontOfSize(13.0)
        self.titleLabel?.y = CGRectGetMaxY((self.imageView?.frame)!) + 5
        self.titleLabel?.centerX = self.width * 0.5
        
    }

}
